//
//  HSQScreeningListCollectionViewCell.m
//  LiTianDecoration
//
//  Created by administrator on 2018/7/30.
//  Copyright © 2018年 administrator. All rights reserved.
//

#import "HSQScreeningListCollectionViewCell.h"

@interface HSQScreeningListCollectionViewCell ()


@end

@implementation HSQScreeningListCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        
        self.contentView.backgroundColor = [UIColor whiteColor];
        
        // 最低价
        UITextField *LowestPrice_TextField = [[UITextField alloc] init];
        LowestPrice_TextField.backgroundColor = RGB(242, 242, 242);
        LowestPrice_TextField.placeholder = @"最低价";
        LowestPrice_TextField.textColor = [UIColor blackColor];
        LowestPrice_TextField.font = [UIFont systemFontOfSize:12.0];
        LowestPrice_TextField.textAlignment = NSTextAlignmentCenter;
        LowestPrice_TextField.keyboardType = UIKeyboardTypeDecimalPad;
        [self.contentView addSubview:LowestPrice_TextField];
        self.LowestPrice_TextField = LowestPrice_TextField;
        
        // 最高价
        UITextField *HighestPrice_TextField = [[UITextField alloc] init];
        HighestPrice_TextField.backgroundColor = RGB(242, 242, 242);
        HighestPrice_TextField.placeholder = @"最高价";
        HighestPrice_TextField.textColor = [UIColor blackColor];
        HighestPrice_TextField.font = [UIFont systemFontOfSize:12.0];
        HighestPrice_TextField.textAlignment = NSTextAlignmentCenter;
        HighestPrice_TextField.keyboardType = UIKeyboardTypeDecimalPad;
        [self.contentView addSubview:HighestPrice_TextField];
        self.HighestPrice_TextField = HighestPrice_TextField;
        
        // 添加约束
        self.LowestPrice_TextField.sd_layout.leftSpaceToView(self.contentView, 10).centerYEqualToView(self.contentView).heightIs(30).widthIs((KScreenWidth - 50) / 2);
        [self.LowestPrice_TextField setSd_cornerRadius:@(5)];
        
        self.HighestPrice_TextField.sd_layout.rightSpaceToView(self.contentView, 10).centerYEqualToView(self.contentView).heightIs(30).widthIs((KScreenWidth - 50) / 2);
        [self.HighestPrice_TextField setSd_cornerRadius:@(5)];
    }
    
    return self;
}

@end
